/*
 * client.h
 *
 *  Created on: May 4, 2011
 *      Author: onteria_
 */

#define SERVER_PORT 1600
#define SERVER_HOST "localhost"

/* Global variable so we can close the connection
   In the event of signal interrupts */
int connection;

void cleanup(int signum);
void check_socket_error(int error_code, int file_descriptor);
void prompt_for_data(UFILE *input, const char * prompt, UChar *dest);

void cleanup(int signum)
{
    if(connection) {
        close(connection);
    }

    return;
}
